package com.empire.module.member.dal.mysql.presentationpersonrelation;

import java.util.*;

import com.empire.framework.common.pojo.PageResult;
import com.empire.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.empire.framework.mybatis.core.mapper.BaseMapperX;
import com.empire.module.member.dal.dataobject.presentationpersonrelation.PresentationPersonRelationDO;
import org.apache.ibatis.annotations.Mapper;
import com.empire.module.member.controller.admin.presentationpersonrelation.vo.*;

/**
 * 报告-人员关系 Mapper
 *
 * @author 主席大人
 */
@Mapper
public interface PresentationPersonRelationMapper extends BaseMapperX<PresentationPersonRelationDO> {

    default PageResult<PresentationPersonRelationDO> selectPage(PresentationPersonRelationPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<PresentationPersonRelationDO>()
                .eqIfPresent(PresentationPersonRelationDO::getPresentationId, reqVO.getPresentationId())
                .eqIfPresent(PresentationPersonRelationDO::getPersonId, reqVO.getPersonId())
                .betweenIfPresent(PresentationPersonRelationDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(PresentationPersonRelationDO::getId));
    }

}